
class XfResultEntity {
  int? code;
  String? message;
  String? sid;
  Data? data;

  XfResultEntity({this.code, this.message, this.sid, this.data});

  XfResultEntity.fromJson(Map<String, dynamic> json) {
    code = json["code"];
    message = json["message"];
    sid = json["sid"];
    data = json["data"] == null ? null : Data.fromJson(json["data"]);
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["code"] = code;
    _data["message"] = message;
    _data["sid"] = sid;
    if(data != null) {
      _data["data"] = data?.toJson();
    }
    return _data;
  }
}

class Data {
  Result? result;
  int? status;

  Data({this.result, this.status});

  Data.fromJson(Map<String, dynamic> json) {
    result = json["result"] == null ? null : Result.fromJson(json["result"]);
    status = json["status"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if(result != null) {
      _data["result"] = result?.toJson();
    }
    _data["status"] = status;
    return _data;
  }
}

class Result {
  int? ed;
  String? pgs;
  String? rst;
  List<int>? rg;
  List<Ws>? ws;
  int? sn;
  bool? ls;
  int? bg;

  Result({this.ed, this.pgs, this.rst, this.rg, this.ws, this.sn, this.ls, this.bg});

  Result.fromJson(Map<String, dynamic> json) {
    ed = json["ed"];
    pgs = json["pgs"];
    rst = json["rst"];
    rg = json["rg"] == null ? null : List<int>.from(json["rg"]);
    ws = json["ws"] == null ? null : (json["ws"] as List).map((e) => Ws.fromJson(e)).toList();
    sn = json["sn"];
    ls = json["ls"];
    bg = json["bg"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["ed"] = ed;
    _data["pgs"] = pgs;
    _data["rst"] = rst;
    if(rg != null) {
      _data["rg"] = rg;
    }
    if(ws != null) {
      _data["ws"] = ws?.map((e) => e.toJson()).toList();
    }
    _data["sn"] = sn;
    _data["ls"] = ls;
    _data["bg"] = bg;
    return _data;
  }
}

class Ws {
  int? bg;
  List<Cw>? cw;

  Ws({this.bg, this.cw});

  Ws.fromJson(Map<String, dynamic> json) {
    bg = json["bg"];
    cw = json["cw"] == null ? null : (json["cw"] as List).map((e) => Cw.fromJson(e)).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["bg"] = bg;
    if(cw != null) {
      _data["cw"] = cw?.map((e) => e.toJson()).toList();
    }
    return _data;
  }
}

class Cw {
  int? sc;
  String? w;

  Cw({this.sc, this.w});

  Cw.fromJson(Map<String, dynamic> json) {
    sc = json["sc"];
    w = json["w"];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["sc"] = sc;
    _data["w"] = w;
    return _data;
  }
}